#include "EWAPrjTrackUI.hpp"

namespace Eyer
{
    EWAPrjTrackUI::EWAPrjTrackUI(const EyerString & _trackId, EWAPrjTrackType trackType)
        : EWAPrjTrack(_trackId)
        , item(new EWAUITrackHeaderItem(trackType, LP::WRAP_CONTENT, LP::WRAP_CONTENT))
        , segBar(new EWAUIWidgetVerticalSegBar(LP::WRAP_CONTENT, LP::WRAP_CONTENT))
        , trackBackground (new EWAUIFrame(LP::WRAP_CONTENT, LP::WRAP_CONTENT))
    {
        int itemWidth = 200;
        item->SetMinWH(itemWidth, 75);
        item->SetTrackId(_trackId);

        segBar->SetMinWH(itemWidth, 3);
        segBar->SetBGColor(EyerColor::GRAY_0);

        trackBackground->SetMinHeight(50);
        trackBackground->SetMinWidth(50);
        trackBackground->SetBGColor(EyerColor::RED);
    }

}